Backtracking and probing
نویسندگان
چکیده
We analyze two algorithms for solving constraint satisfaction problems. One of these algorithms, Probe Order Backtracking, has an average running time much faster than any previously analyzed algorithm for problems where solutions are common. Probe Order Backtracking uses a probing assignment (a prese-lected test assignment to unset variables) to help guide the search for a solution to a constraint satisfaction problem. If the problem is not satissed when the unset variables are temporarily set to the probing assignment , the algorithm selects one of the relations that the probing assignment fails to satisfy and selects an unset variable from that relation. Then at each backtracking step it generates subproblems by setting the selected variable each possible way. It simpliies each subproblem, and tries the same technique on them. For random problems with v variables, t clauses, and probability p that a literal appears in a clause, the average time for Probe Order Backtracking is no more than v n when p (lnt)=v plus lower order terms. The best previous result was p p (ln t)=v. When the algorithm is combined with an algorithm of Franco that makes selective use of resolution, the average time for solving random problems is polynomial for all values of p when t O(n 1=3 (v= ln v) 2=3). The best previous result was t O(n 1=3 (v= ln v) 1=6). Probe Order Backtracking also runs in polynomial average time when p 1=v, compared with the best previous result of p 1=(2v). With Probe Order Backtracking the range of p that leads to more than polynomial time is much smaller than that for previously analyzed algorithms. 1 Backtracking The constraint satisfaction problem is to determine whether a set of constraints over discrete variables can be satissed. Each constraint must have a form that is easy to evaluate, so any diiculty in solving such a problem comes from the interaction between the constraints and the need to nd a setting for the variables that simultaneously satisses all of the constraints. Constraint satisfaction problems are extremely common. Indeed, the proof that a problem is NP-complete implies an eecient way to transform the problem into a constraint satisfaction problem. Most NP-complete problems are initially stated as constraint satisfaction problems. A few special forms of constraint satisfaction problems have known algorithms that solve problem instances in polynomial worst-case time. However, for the general constraint satisfaction problem no known algorithm is …
منابع مشابه
Backtracking and Probing
Abstract: We analyze two algorithms for solving constraint satisfaction problems. One of these algorithms, Probe Order Backtracking, has an average running time much faster than any previously analyzed algorithm for problems where solutions are common. Probe Order Backtracking uses a probing assignment (a preselected test assignment to unset variables) to help guide the search for a solution to...
متن کاملProbe Order Backtracking
The algorithm for constraint-satisfaction problems, Probe Order Backtracking, has an average running time much faster than any previously analyzed algorithm under conditions where solutions are common. The algorithm uses a probing assignment (a preselected test assignment to unset variables) to help guide the search for a solution. If the problem is not satisfied when the unset variables are te...
متن کاملUnimodular Probing for Minimal Perturbance in Dynamic Resource Feasibility Problems
This paper describes unimodular probing { a new technique that has been used to solve a class of dynamic scheduling problems. In benchmarks a unimodular probing algorithm has outperformed two well-established approaches: backtrack search with local consistency and spe-cialised heuristics, and mixed integer programming (MIP). The problems amenable to unimodular probing involve disjunctive constr...
متن کاملEstimating Search Tree Size
We propose two new online methods for estimating the size of a backtracking search tree. The first method is based on a weighted sample of the branches visited by chronological backtracking. The second is a recursive method based on assuming that the unexplored part of the search tree will be similar to the part we have so far explored. We compare these methods against an old method due to Knut...
متن کاملLocal Probing for Resource
This paper investigates a form of algorithm hybridization that combines constraint satisfaction algorithms with local search algorithms. On one hand, constraint satisfaction algorithms are eeective at nding feasible solutions for tightly constrained problems with complex constraints. On the other hand, local search algorithms are usually better at nding solutions that are good with respect to a...
متن کامل